package org.example.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.pojo.domain.Exhibition;
import org.example.pojo.domain.Reservation;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReservationWithFeedbackVo {
    // 预约表字段
    private Integer reservationId;
    private Integer userId;
    private Integer exhibitionId;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date reservedTime;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createdAt;
    // 附加的 Exhibition 对象
    private Exhibition exhibition;
    // 反馈情况
    private Boolean hasFeedback;    // true 表示已有反馈
//    private Integer feedbackId;     // 如果 hasFeedback=true，则为对应的 feedback_id
}
